home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / etc / cron.daily / apport < prev    next >
Encoding:
Text File  |  2007-04-27  |  219 b   |  6 lines

  1. #!/bin/sh -e
  2. # clean all crash reports which are older than a week.
  3. [ -d /var/crash ] || exit 0
  4. find /var/crash -mindepth 1 -mtime +7 -print0 | xargs -0 rm -f
  5. find /var/crash -mindepth 1 -empty -print0 | xargs -0 rm -f
  6.